<HTML
><HEAD
><TITLE
>GR_SCREEN_INFO</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.61
"><LINK
REL="HOME"
TITLE="Nano-X Library API"
HREF="index.html"><LINK
REL="UP"
TITLE="Nano-X Data Types"
HREF="nxstruct.html"><LINK
REL="PREVIOUS"
TITLE="GR_SCANCODE"
HREF="nxstruct_GR_SCANCODE.html"><LINK
REL="NEXT"
TITLE="GR_SIZE"
HREF="nxstruct_GR_SIZE.html"></HEAD
><BODY
CLASS="REFENTRY"
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Nano-X Library API</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="nxstruct_GR_SCANCODE.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="nxstruct_GR_SIZE.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="NXSTRUCT.GR.SCREEN.INFO"
><SPAN
CLASS="TYPE"
>GR_SCREEN_INFO</SPAN
></A
></H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN11755"
></A
><H2
>Name</H2
><SPAN
CLASS="TYPE"
>GR_SCREEN_INFO</SPAN
>&nbsp;--&nbsp;Screen properties</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN11759"
></A
><H2
>Synopsis</H2
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>typedef struct 
{
    GR_COORD   rows;
    GR_COORD   cols;
    GR_SIZE    xdpcm;
    GR_SIZE    ydpcm;
    GR_COUNT   planes;
    GR_COUNT   bpp;
    long       ncolors;
    GR_COUNT   fonts;
    GR_BUTTON  buttons;
    GR_KEYMOD  modifiers;
    int	       pixtype;
    GR_COORD   xpos;
    GR_COORD   ypos;
    GR_SIZE    vs_width;
    GR_SIZE    vs_height;
    GR_SIZE    ws_width;
    GR_SIZE    ws_height;
} GR_SCREEN_INFO;
  </PRE
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN11761"
></A
><H2
>Description</H2
><P
>    A <SPAN
CLASS="STRUCTNAME"
>GR_SCREEN_INFO</SPAN
> structure lets your
    application determine screen properties at run time. The structure
    is 
    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN11765"
></A
><H2
>Fields</H2
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN11767"
></A
><P
></P
><TABLE
BORDER="1"
CLASS="CALSTABLE"
><THEAD
><TR
><TH
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
>Type</TH
><TH
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
>Name</TH
><TH
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>Description</TH
></TR
></THEAD
><TBODY
><TR
><TD
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
><A
HREF="nxstruct_GR_COORD.html"
><SPAN
CLASS="TYPE"
>GR_COORD</SPAN
></A
></TD
><TD
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
>rows</TD
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>The number of rows of pixels on the screen.</TD
></TR
><TR
><TD
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
><A
HREF="nxstruct_GR_COORD.html"
><SPAN
CLASS="TYPE"
>GR_COORD</SPAN
></A
></TD
><TD
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
>cols</TD
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>The number of columns of pixels on the screen.</TD
></TR
><TR
><TD
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
><A
HREF="nxstruct_GR_SIZE.html"
><SPAN
CLASS="TYPE"
>GR_SIZE</SPAN
></A
></TD
><TD
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
>xdpcm</TD
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>The number of pixels (dots) per centimeter along the X
        axis of the screen. </TD
></TR
><TR
><TD
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
><A
HREF="nxstruct_GR_SIZE.html"
><SPAN
CLASS="TYPE"
>GR_SIZE</SPAN
></A
></TD
><TD
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
>ydpcm</TD
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>The number of pixels (dots) per centimeter along the Y
        axis of the screen. </TD
></TR
><TR
><TD
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
><A
HREF="nxstruct_GR_COUNT.html"
><SPAN
CLASS="TYPE"
>GR_COUNT</SPAN
></A
></TD
><TD
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
>planes</TD
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>The number of color planes in the graphics hardware.</TD
></TR
><TR
><TD
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
><A
HREF="nxstruct_GR_COUNT.html"
><SPAN
CLASS="TYPE"
>GR_COUNT</SPAN
></A
></TD
><TD
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
>bpp</TD
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>The number of bits per pixel in the graphics hardware.</TD
></TR
><TR
><TD
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
><SPAN
CLASS="TYPE"
>long</SPAN
></TD
><TD
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
>ncolors</TD
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>The number of colors supported by the hardware.</TD
></TR
><TR
><TD
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
><A
HREF="nxstruct_GR_COUNT.html"
><SPAN
CLASS="TYPE"
>GR_COUNT</SPAN
></A
></TD
><TD
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
>fonts</TD
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>The number of built-in fonts.</TD
></TR
><TR
><TD
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
><A
HREF="nxstruct_GR_BUTTON.html"
><SPAN
CLASS="TYPE"
>GR_BUTTON</SPAN
></A
></TD
><TD
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
>buttons</TD
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>This field indicates the buttons that are available on
        the system's pointing device. For a touch screen device only a
        left button is available, for a GPM mouse three butons are available.</TD
></TR
><TR
><TD
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
><A
HREF="nxstruct_GR_KEYMOD.html"
><SPAN
CLASS="TYPE"
>GR_KEYMOD</SPAN
></A
></TD
><TD
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
>modifiers</TD
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>This field indicates the modifier keys that are available on
        the system's keyboard device. </TD
></TR
><TR
><TD
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
><SPAN
CLASS="TYPE"
>int</SPAN
></TD
><TD
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
>pixtype</TD
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>The screen drivers native pixel format. See 
        <A
HREF="nxstruct_GR_SCREEN_INFO.html#NXSTRUCT.PIXEL.FORMAT"
>below</A
>
        for a list of the available pixel formats. </TD
></TR
><TR
><TD
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
><A
HREF="nxstruct_GR_COORD.html"
><SPAN
CLASS="TYPE"
>GR_COORD</SPAN
></A
></TD
><TD
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
>xpos</TD
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>The current position of the mouse along the X axis. </TD
></TR
><TR
><TD
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
><A
HREF="nxstruct_GR_COORD.html"
><SPAN
CLASS="TYPE"
>GR_COORD</SPAN
></A
></TD
><TD
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
>ypos</TD
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>The current position of the mouse along the Y axis. </TD
></TR
><TR
><TD
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
><A
HREF="nxstruct_GR_SIZE.html"
><SPAN
CLASS="TYPE"
>GR_SIZE</SPAN
></A
></TD
><TD
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
>vs_width</TD
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>&nbsp;</TD
></TR
><TR
><TD
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
><A
HREF="nxstruct_GR_SIZE.html"
><SPAN
CLASS="TYPE"
>GR_SIZE</SPAN
></A
></TD
><TD
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
>vs_height</TD
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>&nbsp;</TD
></TR
><TR
><TD
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
><A
HREF="nxstruct_GR_SIZE.html"
><SPAN
CLASS="TYPE"
>GR_SIZE</SPAN
></A
></TD
><TD
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
>ws_width</TD
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>&nbsp;</TD
></TR
><TR
><TD
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
><A
HREF="nxstruct_GR_SIZE.html"
><SPAN
CLASS="TYPE"
>GR_SIZE</SPAN
></A
></TD
><TD
WIDTH="25%"
ALIGN="LEFT"
VALIGN="TOP"
>ws_height</TD
><TD
WIDTH="50%"
ALIGN="LEFT"
VALIGN="TOP"
>&nbsp;</TD
></TR
></TBODY
></TABLE
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="NXSTRUCT.PIXEL.FORMAT"
></A
><H2
>Pixel Formats</H2
><P
>  The following table lists the possible pixel format values that may
  be returned in the <SPAN
CLASS="STRUCTNAME"
>GR_SCREEN_INFO</SPAN
>
  structure. There are two pseudo pixel formats. These formats will
  never be returned from a screen driver, but they are be used as a
  data type with the 
  <A
HREF="nxapi_GrArea.html"
><TT
CLASS="FUNCTION"
>GrArea()</TT
></A
> 
  function.
  </P
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN11885"
></A
><P
></P
><TABLE
BORDER="1"
CLASS="CALSTABLE"
><THEAD
><TR
><TH
WIDTH="33%"
ALIGN="LEFT"
VALIGN="TOP"
>Pixel Format</TH
><TH
WIDTH="67%"
ALIGN="LEFT"
VALIGN="TOP"
>Description</TH
></TR
></THEAD
><TBODY
><TR
><TD
WIDTH="33%"
ALIGN="LEFT"
VALIGN="TOP"
><TT
CLASS="CONSTANT"
>MWPF_RGB</TT
></TD
><TD
WIDTH="67%"
ALIGN="LEFT"
VALIGN="TOP"
>This psuedo format is used as a conversion specifier
        when working with 32 bit RGB format pixel colors.</TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="LEFT"
VALIGN="TOP"
><TT
CLASS="CONSTANT"
>MWPF_PIXELVAL</TT
></TD
><TD
WIDTH="67%"
ALIGN="LEFT"
VALIGN="TOP"
>This psuedo format is used as a <I
CLASS="EMPHASIS"
>no</I
>
        conversion specifier when working with GR_PIXELVAL pixel
        colors. </TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="LEFT"
VALIGN="TOP"
><TT
CLASS="CONSTANT"
>MWPF_PALETTE</TT
></TD
><TD
WIDTH="67%"
ALIGN="LEFT"
VALIGN="TOP"
>Palettized pixel color format.</TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="LEFT"
VALIGN="TOP"
><TT
CLASS="CONSTANT"
>MWPF_TRUECOLOR0888</TT
></TD
><TD
WIDTH="67%"
ALIGN="LEFT"
VALIGN="TOP"
>Packed 32 bit 0/8/8/8 true color format.</TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="LEFT"
VALIGN="TOP"
><TT
CLASS="CONSTANT"
>MWPF_TRUECOLOR888</TT
></TD
><TD
WIDTH="67%"
ALIGN="LEFT"
VALIGN="TOP"
>Packed 24 bit 8/8/8 truecolor format.</TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="LEFT"
VALIGN="TOP"
><TT
CLASS="CONSTANT"
>MWPF_TRUECOLOR565</TT
></TD
><TD
WIDTH="67%"
ALIGN="LEFT"
VALIGN="TOP"
>Packed 16 bit 5/6/5 truecolor format.</TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="LEFT"
VALIGN="TOP"
><TT
CLASS="CONSTANT"
>MWPF_TRUECOLOR555</TT
></TD
><TD
WIDTH="67%"
ALIGN="LEFT"
VALIGN="TOP"
>Packed 16 bit 0/5/5/5 truecolor format.</TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="LEFT"
VALIGN="TOP"
><TT
CLASS="CONSTANT"
>MWPF_TRUECOLOR332</TT
></TD
><TD
WIDTH="67%"
ALIGN="LEFT"
VALIGN="TOP"
>Packed 8 bit 3/3/2 truecolor format.</TD
></TR
></TBODY
></TABLE
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN11927"
></A
><H2
>See Also</H2
><P
>      <A
HREF="nxapi_GrGetScreenInfo.html"
>            <TT
CLASS="FUNCTION"
>GrGetScreenInfo()</TT
></A
>,
      <A
HREF="nxstruct_GR_WINDOW_INFO.html"
>            <SPAN
CLASS="STRUCTNAME"
>GR_WINDOW_INFO</SPAN
></A
>.
    </P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="nxstruct_GR_SCANCODE.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="nxstruct_GR_SIZE.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><SPAN
CLASS="TYPE"
>GR_SCANCODE</SPAN
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="nxstruct.html"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><SPAN
CLASS="TYPE"
>GR_SIZE</SPAN
></TD
></TR
></TABLE
></DIV
></BODY
></HTML
>